package com.yw.master.rabbit.consumer;
import com.alibaba.fastjson.JSONObject;
import com.yw.master.rabbit.entity.RabbitMessage;

public class RmqConsumer {
	
	
	 public void rmqProducerMessage(Object object){  
         
	        RabbitMessage rabbitMessage=(RabbitMessage) object;  
	          
	        System.out.println(rabbitMessage.getExchange());  
	        System.out.println(rabbitMessage.getRouteKey());  
	        System.out.println(JSONObject.toJSONString(rabbitMessage.getParams()));  
	          
	          
	 }  

}
